﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>
char* my_strcpy(char* dset, const char* src)
{
	assert(dset && src);
	char* ret = dset;
	while (*dset++=*src++)
	{
	}
	return ret;//返回目标空间起始地址
}
int main()
{
	char arr1[] = "abcdef";
	char arr2[20] = { 0 };
	printf("%s", my_strcpy(arr2,arr1));
	return 0;
}